package com.example.yuejianapp14.Activity.Servics;

import com.example.yuejianapp14.Activity.JavaBean.Success;
import com.example.yuejianapp14.Activity.JavaBean.Tiezi;

import java.util.List;

import okhttp3.MultipartBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Query;

/**
 * Created by jason_lin on 2017/10/19.
 */

public interface TieziService {
    @GET("alltiezi")
    Call<List<Tiezi>> getTieze();

    @GET("findtiezi")
    Call<List<Tiezi>> findTiezi(
            @Query("uid")String uid

    );
    @GET("tieziinfo")
    Call<Tiezi> tieziinfo(
            @Query("tid")String tid
    );
    @Multipart
    @POST("Releasetiezi")
    Call<Success> Releasetiezi(
            @Query("uid") String uid,
            @Query("content") String content,
            @Part MultipartBody.Part file
    );


}
